

from selenium import webdriver
import time

driver= webdriver.Chrome(executable_path='D:\\pythonglr\\python\\driver\\chromedriver.exe')
driver.get('https://www.sogou.com')
driver.find_element_by_id('query').send_keys('光荣之路自动化测试')
driver.find_element_by_id('stb').click()


time.sleep(3)
assert '艾瑞克老师' in driver.page_source
driver.close()